package hl.model;
// Generated 2018-4-15 22:16:44 by Hibernate Tools 4.3.5.Final

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * TSigning generated by hbm2java
 */
@Entity
@Table(name = "t_signing", catalog = "matcha_gym")
public class TSigning implements java.io.Serializable {

	private Long pkSigning;
	private TMember TMember;
	private TVenueInfo TVenueInfo;
	private Date signDatetime;
	private String signStatus;

	public TSigning() {
	}

	public TSigning(TMember TMember, TVenueInfo TVenueInfo) {
		this.TMember = TMember;
		this.TVenueInfo = TVenueInfo;
	}

	public TSigning(TMember TMember, TVenueInfo TVenueInfo, Date signDatetime, String signStatus) {
		this.TMember = TMember;
		this.TVenueInfo = TVenueInfo;
		this.signDatetime = signDatetime;
		this.signStatus = signStatus;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)

	@Column(name = "PK_SIGNING", unique = true, nullable = false)
	public Long getPkSigning() {
		return this.pkSigning;
	}

	public void setPkSigning(Long pkSigning) {
		this.pkSigning = pkSigning;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "PK_MEMBER", nullable = false)
	public TMember getTMember() {
		return this.TMember;
	}

	public void setTMember(TMember TMember) {
		this.TMember = TMember;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "PK_VENUE_INFO", nullable = false)
	public TVenueInfo getTVenueInfo() {
		return this.TVenueInfo;
	}

	public void setTVenueInfo(TVenueInfo TVenueInfo) {
		this.TVenueInfo = TVenueInfo;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "SIGN_DATETIME", length = 19)
	public Date getSignDatetime() {
		return this.signDatetime;
	}

	public void setSignDatetime(Date signDatetime) {
		this.signDatetime = signDatetime;
	}

	@Column(name = "SIGN_STATUS", length = 4)
	public String getSignStatus() {
		return this.signStatus;
	}

	public void setSignStatus(String signStatus) {
		this.signStatus = signStatus;
	}

}
